package m.jclecai.com.contents;

import m.jclecai.com.MyApplication;

/**
 * Created by hp on 2017/3/14.
 * 彩票种类
 */

public class LotteryType {

    public final static int SSQ = 16;
    public final static int SD = 1;
    public final static int QLC = 17;
    public final static int PLS = 2;
    public final static int PLW = 13;
    public final static int QXC = 18;
    public final static int DLT = 19;

    public final static int JSKS = 35;
    public final static int AHKS = 32;
    public final static int HBKS = 33;
    public final static int JLKS = 34;

    public final static int CQSSC = 3;
    public final static int SYXW = 9; //11选5
    public final static int JXSYXW = 6; //11选5
    public final static int GDSYXW = 10; //11选5
    public final static int SHSYXW = 24; //11选5
    public final static int ZJSYXW = 27; //11选5
    public final static int JSSYXW = 28; //11选5
    public final static int SDXYXW = 8; //11运夺金
    public final static int HBXYXW = 29; //11运夺金

    public final static int SFC = 71; //胜负彩
    public final static int JCZQ = 41;
    public final static int JCLQ = 51;
    public final static int JCZQHT = 46;    //足球混合投注
    public final static int JCLQHT = 55;    //篮球混合投注
    public final static int BJDC = 61;

    public final static int KLPK = 20;
    public final static int GDKLSF=14;

    public final static int ZJSEXW=22;


    public final static String DEFAULT = "1:" + MyApplication.SERVERPARAM;
    //TODO 兼容java 1->2
    public final static String BASE = ":1:" + MyApplication.SERVERPARAM + ";";

    //双色球和大乐透，都变成1->2
    public final static String SSQ_DLT=":1:2;";

    //TODO 11选5 兼容java 1->2
    //任选二
    public final static String RX2 = ":2:" + MyApplication.SERVERPARAM + ";";
    //任选三
    public final static String RX3 = ":3:" + MyApplication.SERVERPARAM + ";";
    //任选四
    public final static String RX4 = ":4:" + MyApplication.SERVERPARAM + ";";
    //任选五
    public final static String RX5 = ":5:" + MyApplication.SERVERPARAM + ";";
    //任选六
    public final static String RX6 = ":6:" + MyApplication.SERVERPARAM + ";";
    //任选七
    public final static String RX7 = ":7:" + MyApplication.SERVERPARAM + ";";
    //任选八
    public final static String RX8 = ":8:" + MyApplication.SERVERPARAM + ";";
    //前一直选
    public final static String zhi1 = ":1:" + MyApplication.SERVERPARAM + ";";
    //前二直选
    public final static String zhi2 = ":9:" + MyApplication.SERVERPARAM + ";";
    //前三直选
    public final static String zhi3 = ":10:" + MyApplication.SERVERPARAM + ";";
    //前二组选
    public final static String zu2 = ":11:" + MyApplication.SERVERPARAM + ";";
    //前三组选
    public final static String zu3 = ":12:" + MyApplication.SERVERPARAM + ";";

    //任选二胆拖
    public final static String RX2_DT = ":2:5;";
    //任选三胆拖
    public final static String RX3_DT = ":3:5;";
    //任选四胆拖
    public final static String RX4_DT = ":4:5;";
    //任选五胆拖
    public final static String RX5_DT = ":5:5;";
    //任选六胆拖
    public final static String RX6_DT = ":6:5;";
    //任选七胆拖
    public final static String RX7_DT = ":7:5;";
    //任选八胆拖
    public final static String RX8_DT = ":8:5;";

    //前二组选胆拖
    public final static String zu2_DT = ":11:5;";
    //前三组选胆拖
    public final static String zu3_DT = ":12:5;";


    //TODO 福彩3D 排列三  兼容java
    // 直选
    public final static String FC3D_ZHI1 = MyApplication.ISPHP ? (":1:1;") : (":3:2;");
    //组三单式
    public final static String FC3D_ZU3DS = MyApplication.ISPHP ? (":2:1;") : (":10:1;");
    //组三复式
    public final static String FC3D_ZU3FS = MyApplication.ISPHP ? (":2:3;") : (":8:2;");
    //组六
    public final static String FC3D_ZU6 = MyApplication.ISPHP ? (":3:1;") : (":9:2;");
    //直选和值
    public final static String FC3D_HZ = MyApplication.ISPHP ? (":1:4;") : (":3:4;");

    //TODO 时时彩 兼容java
    // 一星直选
    public final static String SSC_YXZX = MyApplication.ISPHP ? (":1:1;") : (":5:2;");
    //二星直选
    public final static String SSC_EXZX = MyApplication.ISPHP ? (":2:1;") : (":4:2;");
    //三星直选
    public final static String SSC_SXZX = MyApplication.ISPHP ? (":3:1;") : (":3:2;");
    //五星直选
    public final static String SSC_WXZX = MyApplication.ISPHP ? (":5:1;") : (":1:2;");
    //五星通选
    public final static String SSC_WXTX = MyApplication.ISPHP ? (":12:1;") : (":12:2;");
    //二星组选
    public final static String SSC_EXZUX = MyApplication.ISPHP ? (":10:3;") : (":7:2;");
    //组三
    public final static String SSC_ZU3 = MyApplication.ISPHP ? (":15:3;") : (":8:2;");
    //组六
    public final static String SSC_ZU6 = MyApplication.ISPHP ? (":16:3;") : (":9:2;");
    //大小单双
    public final static String SSC_DXDS = MyApplication.ISPHP ? (":11:1;") : (":6:2;");
    //而行和值
    public final static String SSC_EXHZ = MyApplication.ISPHP ? (":10:4;") : (":7:4;");

    //TODO 江苏快三 兼容java
    //和值
    public final static String KS_HZ = ":1:4;";
    //三同号单选
    public final static String KS_STHDX = ":3:" + MyApplication.SERVERPARAM + ";";
    //二同号单选
   // public final static String KS_ETHDX = ":6:" + MyApplication.SERVERPARAM + ";";

    public final static String KS_ETHDX =MyApplication.ISPHP?(":7:2;"):(":7:1;");
    //三不同号
    public final static String KS_SBTH = ":4:" + MyApplication.SERVERPARAM + ";";
    //二不同号
    public final static String KS_EBTH = ":8:" + MyApplication.SERVERPARAM + ";";

    //三同号通选
    public final static String KS_STHTX = "0,0,0:2:" + MyApplication.SERVERPARAM + ";";
    //二同号复选
    //public final static String KS_ETHFX = ":6:" + MyApplication.SERVERPARAM + ";";
    public final static String KS_ETHFX = MyApplication.ISPHP?(":6:1;"):(":6:2;");
    //三连号通选
    public final static String KS_SLHTX = "0,0,0:5:" + MyApplication.SERVERPARAM + ";";


    //======================快乐扑克 兼容java=========================
    //对子
    public final static String KLPK_DZ = ":11:" + MyApplication.SERVERPARAM + ";";           //00:11:1表示对子包选；
    //同花；
    public final static String KLPK_TH = ":7:" + MyApplication.SERVERPARAM + ";";
    //顺子
    public final static String KLPK_SZ = ":8:" + MyApplication.SERVERPARAM + ";";
    //同花顺
    public final static String KLPK_THS = ":9:" + MyApplication.SERVERPARAM + ";";
    //豹子
    public final static String KLPK_BZ = ":10:" + MyApplication.SERVERPARAM + ";";
    //包选
    public final static String KLPK_BX = ":12:" + MyApplication.SERVERPARAM + ";";
    //任选1
    public final static String KLPK_RX1 = ":1:" + MyApplication.SERVERPARAM + ";";
    //任选2
    public final static String KLPK_RX2 = ":2:" + MyApplication.SERVERPARAM + ";";
    //任选3
    public final static String KLPK_RX3 = ":3:" + MyApplication.SERVERPARAM + ";";
    //任选4
    public final static String KLPK_RX4 = ":4:" + MyApplication.SERVERPARAM + ";";
    //任选5
    public final static String KLPK_RX5 = ":5:" + MyApplication.SERVERPARAM + ";";
    //任选6
    public final static String KLPK_RX6 = ":6:" + MyApplication.SERVERPARAM + ";";

    //快乐十分兼容java;

    public final static String GDKLSF_XYST=MyApplication.ISPHP?(":1:1;"):(":1:2;");

    public final static String GDKLSF_XYHT=MyApplication.ISPHP?(":2:1;"):(":2:2;");
    public final static String GDKLSF_RX2=MyApplication.ISPHP?(":3:1;"):(":3:2;");
    public final static String GDKLSF_RX3=MyApplication.ISPHP?(":4:1;"):(":4:2;");
    public final static String GDKLSF_RX4=MyApplication.ISPHP?(":5:1;"):(":5:2;");
    public final static String GDKLSF_RX5=MyApplication.ISPHP?(":6:1;"):(":6:2;");

    public final static String GDKLSF_XELZU=MyApplication.ISPHP?(":7:1;"):(":7:2;");
    public final static String GDKLSF_XELZHI=MyApplication.ISPHP?(":8:1;"):(":8:2;");

    /**
     * 根据彩种id来获取彩种的名字
     *
     *
     public final static int SFC = 71; //胜负彩
     public final static int JCZQ = 41;
     public final static int JCLQ = 51;
     public final static int BJDC = 61;

     public final static int KLPK = 20;
     public final static int GDKLSF=14;

     public final static int ZJSEXW=22;
     * @return
     */
    public static String getLotteryName(String strLotteryId){
        int lotteryId=Integer.parseInt(strLotteryId);
        String name="";
        switch (lotteryId) {
            case SSQ:
                name="双色球";
                break;
            case SD:
                name="福彩3D";
                break;
            case QLC:
                name="七乐彩";
                break;
            case PLS:
                name="排列三";
                break;
            case PLW:
                name="排列五";
                break;
            case QXC:
                name="七星彩";
                break;
            case DLT:
                name="大乐透";
                break;
            case JSKS:
                name="江苏快三";
                break;
            case JLKS:
                name="吉林快三";
                break;
            case HBKS:
                name="湖北快三";
                break;
            case CQSSC:
                name="重庆时时彩";
                break;
            case SYXW:
                name="江西11选5";
                break;
            case GDSYXW:
                name="广东11选5";
                break;
            case SHSYXW:
                name="上海11选5";
                break;
            case ZJSYXW:
                name="浙江11选5";
                break;
            case JSSYXW:
                name="江苏11选5";
                break;
            case SDXYXW:
                name="山东11选5";
                break;
            case SFC:
                name="胜负彩";
                break;
            case JCZQ:
                name="竞彩足球";
                break;
            case JCLQ:
                name="竞彩篮球";
                break;
            case BJDC:
                name="北京单场";
                break;
            case KLPK:
                name="快乐扑克";
                break;
            case GDKLSF:
                name="广东快乐十分";
                break;
            case ZJSEXW:
                name="浙江12选5";
                break;
            case HBXYXW:
                name="湖北11选5";
                break;
            case JCZQHT:
                name="竞彩足球混投";
                break;
            case JCLQHT:
                name="竞彩篮球混投";
                break;
        }
        return name;
    }
}
